package org.xq.softcup.mq.client.util;

import java.util.UUID;

import static java.util.UUID.randomUUID;

public class GenerateId {

    public static String generateId() {
        return randomUUID().toString().replaceAll("-", "");
    }

    public static long generLongId() {
       return UUID.randomUUID().toString().hashCode();
    }
}
